package com.example.websocket.pattern.creational.singleton;

public class LazyManSafeSingle {

    private static LazyManSafeSingle lazyManSafeSingle;

    private LazyManSafeSingle() {}

    public static synchronized LazyManSafeSingle getInstance() {
        if (lazyManSafeSingle == null) {
            lazyManSafeSingle = new LazyManSafeSingle();
        }
        return lazyManSafeSingle;
    }
}
